/**
 * 秒转分钟
 * @param {Object} seconds
 */
export function secondsToMinutes(s) {
    let minutes = Math.floor(s / 60); // 分钟
    let seconds = s % 60; // 剩余秒数
	minutes = minutes ? (minutes < 9 ? '0'+minutes : minutes) : '00'
	seconds = seconds ? (seconds < 9 ? '0'+seconds : seconds) : '00'
	// 分
	const mFormat = minutes ? `${minutes < 9 ? '0'+minutes : minutes}` : '00'
	const sFormat = seconds ? `${seconds < 9 ? '0'+seconds : seconds}` : '00'
    return {
		minutes,
		seconds,
		m: minutes === null ? null : '分',
		s: seconds === null ? null : '秒',
		result: `${minutes}分${seconds}秒`
	};
}